/*
 * @Author: your name
 * @Date: 2020-08-03 16:25:09
 * @LastEditTime: 2020-08-03 20:46:23
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \cms-serverd:\NZ_2001\线下三阶段\threeJD\vue\vue-cli\vue-mall\src\api\index.js
 */
import axios from 'axios'
import Vue from 'vue'

// 配置根路径
axios.defaults.baseURL = 'http://localhost:8888'
// http://203.195.181.208:8888  http://localhost:8888

Vue.prototype.Api = {
  // 获取轮播数据
  getLunbo(params) {
    return axios.get('/api/getlunbo', params)
  },
  getGrids(params) {
    return axios.get('/api/grids', params)
  }
}
